<?php
use backend\assets\AgentAsset;
use yii\helpers\Html;

AgentAsset::register($this);
?>
    <div class="main">
        <div class="table_kj">
            <table cellpadding=0 cellspacing=0 class="table  table-bordered">
                <thead>
                <tr>
                    <th>商品名称</th>
                    <th>规格</th>
                    <th>库存</th>
                    <th>入库数量</th>
                    <th>供应商</th>
                    <th>品牌</th>
                    <th>系列</th>
                    <th>类别</th>
                    <!-- 老板 -->
                    <?php if ($this->userinfo->user_type == 3) { ?>
                        <th>成本价</th>
                    <?php } ?>
                    <th>零售价</th>
                </tr>
                </thead>
                <?php foreach ($data as $d) { ?>
                    <tr>
                        <td><?= Html::encode($d['goods_name']) ?></td>
                        <td><?= Html::encode($d['goods_specs']) ?></td>
                        <td><?= Html::encode($d['repertory_count']) ?></td>
                        <td><?= Html::encode($d['inc_count']) ?></td>
                        <td><?= Html::encode($d['supplier_name']) ?></td>
                        <td><?= Html::encode($d['goods_brand']) ?></td>
                        <td><?= Html::encode($d['goods_series']) ?></td>
                        <td><?= Html::encode($d['goods_category']) ?></td>
                        <!-- 老板 -->
                        <?php if ($this->userinfo->user_type == 3) { ?>
                            <td><?= Html::encode($d['goods_cost_price']) ?></td>
                        <?php } ?>
                        <td><?= Html::encode($d['goods_sell_price']) ?></td>
                    </tr>
                <?php } ?>
            </table>
        </div>

        <?php //Pjax::end();?>
        <div class="tab_message">
            <lable>备注</lable>
			<textarea class="form-control form-control_box" rows="" cols=""><?= Html::encode($remark) ?></textarea>
        </div>
        <div class="clearfix"></div>
        <div class="button_tab mt20">
            <button type="" class="ok cancel btnBg">关闭</button>
        </div>
        <script>
            $(function(){
                $(".cancel").on('click',function(){
                    top.location.href='/business/repertoryinc/increcord';
                });
            });

        </script>


    </div>


<?php $this->beginBlock('js_index') ?>


<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['js_index'], $this::POS_END); ?>